//-----------------------------------------------------------------------
// <copyright file="a_ReferDetailService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ReferDetailService
    {
        #region a_ReferDetail

        public static void Createa_ReferDetail(a_ReferDetail a_ReferDetail)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                a_ReferDetailDAO.Createa_ReferDetail(a_ReferDetail);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ReferDetail(a_ReferDetail a_ReferDetail)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                a_ReferDetailDAO.Updatea_ReferDetail(a_ReferDetail);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ReferDetail(int refDetID)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                a_ReferDetailDAO.Deletea_ReferDetail(refDetID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ReferDetail Geta_ReferDetail(int refDetID)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                return a_ReferDetailDAO.Geta_ReferDetail(refDetID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ReferDetailCollection Geta_ReferDetailList(a_ReferDetailColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                return a_ReferDetailDAO.Geta_ReferDetailList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ReferDetailCollection Geta_ReferDetailList(a_ReferDetailColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ReferDetailDAO a_ReferDetailDAO = new a_ReferDetailDAO();
                return a_ReferDetailDAO.Geta_ReferDetailList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}